import {configureStore} from '@reduxjs/toolkit';
import counterSlice from './features/counterSlice';
// configureStore创建一个redux数据
const store = configureStore({
  reducer: {
    counter: counterSlice,
  },
});

export type RootState = ReturnType<typeof store.getState>;

export default store;
